import QtQuick
import QtQuick.Window

Window {
    width: 300
    height: 480
    visible: true

ListView {
    width: 100; height: 100
    anchors.fill: parent

    // case1: QStringList
//        model: myModel1
//        delegate: Rectangle {
//            height: 25; width: 100
//            Text { text: model.modelData }
//        }

    // case2: QList<QObject*>
    model: myModel2
    delegate: Rectangle {
        height: 25; width: 100
        color: model.modelData.color // != color
        Text {
            text: name // <=> model.modelData.name
        }

    }
}
}
